import App from './App'
import store from './store/index.js'
// 挂载助手函数库
import $U from './common/js/util.js';
// 引入request库
import $H from '@/common/js/request.js';

// #ifndef VUE3
import Vue from 'vue'
Vue.prototype.$store = store
Vue.prototype.$U = $U;
Vue.prototype.$H = $H;

Vue.config.productionTip = false
App.mpType = 'app'
const app = new Vue({
	store,
    ...App
})
app.$mount()
// #endif

// #ifdef VUE3
import { createSSRApp } from 'vue'
export function createApp() {
	const app = createSSRApp(App)

	app.config.globalProperties.$H = $H
	app.config.globalProperties.$U = $U

	app.use(store)
	
	return {
		app
	}
}
// #endif